package com.qys.livesMall.finance.model.dto;

import com.qys.livesMall.common.message.QysLang;
import com.qys.livesMall.finance.enums.AccountBusinessTypeEnum;
import com.qys.livesMall.finance.enums.AccountTradeTypeEnum;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @menu ShopBalanceHandle
 * @date 2023/06/06 16:25
 */
@Data
public class AccountHandle {
    /**
     * 用户Id
     */
    private Long userId;

    /**
     * 店铺Id
     */
    private Long shopId;

    /**
     * 账户类型
     */
    private Integer accountType;

    /**
     * 交易流水号
     */
    private Long serialNumber;

    /**
     * 发生金额
     */
    private BigDecimal amountIncurred;

    /**
     * 业务编码
     */
    private String businessNo;

    /**
     * 交易类型
     */
    private AccountTradeTypeEnum tradeTypeEnum;

    /**
     * 备注
     */
    private String description;
    /**
     * @LINK PayMethod
     * 支付方式
     */
    private String payMethod;

    /**
     * 业务分类
     */
    private AccountBusinessTypeEnum businessType;

    /**
     * 冻结金额
     */
    private BigDecimal freezeAmount;

    /**
     * 处理结果
     */
    private boolean success =false;

    /**
     * 备注
     */
    private QysLang message;

    public boolean getSuccess() {
       return this.success;
    }
}

